package cn.gson.school.entity.jiaoxue;

import java.util.Date;
import java.util.List;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

import cn.gson.school.entity.xitong.UserEntity;
import cn.gson.school.entity.xitong.UserInfoEntity;

/**
 * 教学模块--项目管理 项目id；创建人；项目类型；创建时间；团队人数；学生详情编号；学生详情编号；项目资料
 */
@Entity
@Table(name = "tb_jx_project")
public class ProjectEntity {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "project_id")
	private Long projectId;

	@ManyToOne
	@JoinColumn(name = "userinfo_id")
	private UserInfoEntity userinfo;
	/** 用户表外键id */

	@Column(name = "project_type")
	private String projectType;

	@Column(name = "create_time")
	@JsonFormat(pattern="yyyy-MM-ddHH:mm:ss")
	private Date creaTime;

	@Column(name = "team_size")
	private Integer teamSize;

	/** 学生详情表外键id */

	@Column(name = "project_date")
	private String projectData;

	@Column(name = "is_delete")
	private Integer delete;

	public Long getProjectId() {
		return projectId;
	}

	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}


	public String getProjectType() {
		return projectType;
	}

	public void setProjectType(String projectType) {
		this.projectType = projectType;
	}

	public Date getCreaTime() {
		return creaTime;
	}

	public void setCreaTime(Date creaTime) {
		this.creaTime = creaTime;
	}

	public Integer getTeamSize() {
		return teamSize;
	}

	public void setTeamSize(Integer teamSize) {
		this.teamSize = teamSize;
	}

	public String getProjectData() {
		return projectData;
	}

	public void setProjectData(String projectData) {
		this.projectData = projectData;
	}

	public Integer getDelete() {
		return delete;
	}

	public void setDelete(Integer delete) {
		this.delete = delete;
	}

	

	public UserInfoEntity getUserinfo() {
		return userinfo;
	}

	public void setUserinfo(UserInfoEntity userinfo) {
		this.userinfo = userinfo;
	}

	@Override
	public String toString() {
		return "ProjectEntity [projectId=" + projectId + ", userinfo=" + userinfo + ", projectType=" + projectType
				+ ", creaTime=" + creaTime + ", teamSize=" + teamSize + ", projectData=" + projectData + ", delete="
				+ delete + "]";
	}

}
